<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>作业二</title>
    <style>
        #d1 {
            background-image: url("http://doc.canglaoshi.org/tstore_v1/images/itemCat/study_computer_img2.png");
            background-repeat: no-repeat;
            background-color: #e8e8e8;
            width: 375px;
            height: 376px;
            /*   border: 1px solid red;*/
            background-position: 80% 90%;

        }

        #d2 {
            width: 200px;
            font-size: 30px;
            margin-top: 30px;
            margin-left: 15px;
        }

        #d3 {
            font-size: 12px;
            margin-top: 10px;
            margin-left: 15px;
            font-weight: lighter;
            color: slategrey;
        }

        #d4 {
            width: 100px;
            height: 30px;
            font-size: 20px;
            margin-top: 10px;
            margin-left: 15px;
            color: #0AA1ED;
            font-weight: bolder;
            text-align: center;
        }

        a {
            background-color: #0aa1ed;
            width: 110px;
            height: 40px;
            display: block; /*行内元素不能修改宽高,如必须改则修改display为块级或行内块*/
            text-align: center;
            line-height: 40px;
            color: white;
            text-decoration: none; /*取消下划线*/
            font-size: 20px;
            border-radius: 3px; /*设置圆角*/
            margin-top: 10px;
            margin-left: 15px;

        }
        body {
            font: 12px "simhei", Arial, Helvetica, sans-serif;
        }


    </style>
</head>
<body>

<div id="d1">
    <div id="d2">颜值&nbsp;框不住</div>
    <div id="d3">酷睿双核i5处理器|256GB SSD| 8GB内存 <br>
        英特尔HD显卡620含共享显卡内存
    </div>
    <div id="d4">￥6888.00</div>
    <a href="">查看详情</a>
</div>


</body>
</html>